package gps.gui;

import gps.implementationAPI.GPSStateImplementation;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JFrame;

public class Frame extends JFrame {

	private static final long serialVersionUID = 1L;
	
	private BoardPanel boardPanel;
	
	
	public Frame(){
		super();
		
		boardPanel = new BoardPanel();
		add(boardPanel, BorderLayout.CENTER);
		setBackground(Color.GREEN);
	}
	
	
	public void setState(GPSStateImplementation state){
		boardPanel.setCurrentState(state);
		boardPanel.repaint();
		
	}
	
}
